//
//  NSDate+DateExtend.h
//  WhatWeather
//
//  Created by byn on 16/3/14.
//  Copyright © 2016年 byn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <objc/runtime.h>

@interface NSDate (DateExtend)

@property (nonatomic,strong) NSDateComponents *dateComponents;

- (NSInteger)getYear;
- (NSInteger)getMonth;
- (NSInteger)getDay;
- (NSInteger)getWeekDay;
- (NSInteger)getHours;
- (NSInteger)getMinite;
- (NSInteger)getSecond;
+ (NSDate *)initDateWithYear : (NSInteger)year month : (NSInteger)month day : (NSInteger)day hour : (NSInteger)hour minite : (NSInteger)minite second : (NSInteger)second calendarIdentifier : (NSString *)identifier;
- (instancetype)createDateWithDataStr: (NSString *)dateStr withDataFormatter : (NSString *)dataFormatter;

@end
